package cn.ronghuanet.base.mapper;

import cn.ronghuanet.base.query.BaseQuery;
import cn.ronghuanet.org.domain.Department;
import cn.ronghuanet.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface BaseMapper<T> {
    void update(T t);

    void insert(T t);

    T selectById(Serializable id);

    List<T> selectAll();

    void delete(Serializable id);

    Long countTotal(BaseQuery baseQuery);

    List<T> queryPage(BaseQuery baseQuery);

    void batchDelete(@Param("ids") List<Long> ids);
}
